package study.db.postgresql.mapper.examenrolluserext;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;

import java.util.List;

public interface ExamEnrollUserExtMapper extends BaseMapper<ExamEnrollUserExtEO> {

    int insertByBatch(List<ExamEnrollUserExtEO> EOLt);

    //****** 以下为默认方法 ******
    default int delByEnrollIds(List<Long> enrollIdLt) {
        QueryWrapper wrapper = Wrappers.query()
                .in("enroll_id", enrollIdLt);
        return delete(wrapper);
    }
}
